<form action="" method="POST">
    <div>
    <label for="username">用户名:</label> <input name="username" id="username">
</div>
<div>
    <label for = "password">密码：</label><input name="password" type="password" id = "password">

</div>
    <input type="submit"  value="提交">
     {% csrf_token %}

</form>